<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>
        //编写一个js对象
        let user={
            "name":"王木木",
            "age":"18"
        };
        //将js对象转换为json对象
        let json = JSON.stringify({a:"Hello",b:"nihao"});
        //将json对象转换为js对象
        let obj = JSON.parse('{"a":"Hello","b":"nihao"}');
        console.log(obj)
        console.log(user);
        console.log(json);
    </script>


</head>
<body>

</body>
</html>